package com.wuhao.jdqlib.constants

import java.util.UUID

object BleConfig {
    val BLE_UUID: UUID = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb")

    //记弹器
    val RX_SERVICE_UUID: UUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e")
    val RX_CHAR_UUID: UUID = UUID.fromString("6e400002-b5a3-f393-e0a9-e50e24dcca9e")
    val TX_CHAR_UUID: UUID = UUID.fromString("6e400003-b5a3-f393-e0a9-e50e24dcca9e")

    //记弹器-新
    val RX_SERVICE_UUID2: UUID = UUID.fromString("0000fff0-0000-1000-8000-00805f9b34fb")
    val RX_CHAR_UUID2: UUID = UUID.fromString("0000ffe2-0000-1000-8000-00805f9b34fb")
    val TX_CHAR_UUID2: UUID = UUID.fromString("0000fff1-0000-1000-8000-00805f9b34fb")
    //记弹器-新
    val RX_SERVICE_UUID3: UUID = UUID.fromString("f00012ac-4202-56be-ee11-103b4086325d")
    val RX_CHAR_UUID3: UUID = UUID.fromString("f00022ac-4202-56be-ee11-103b4086325d")
    val TX_CHAR_UUID3: UUID = UUID.fromString("f00112ac-4202-56be-ee11-103b4086325d")

    //激光枪
    val RX_SERVICE_UUID_JGQ: UUID = UUID.fromString("0000ffe0-0000-1000-8000-00805f9b34fb")
    val RX_CHAR_UUID_JGQ: UUID = UUID.fromString("0000ffe4-0000-1000-8000-00805f9b34fb")
    val TX_CHAR_UUID_JGQ: UUID = UUID.fromString("0000ffe4-0000-1000-8000-00805f9b34fb")

    //打印机
    val RX_SERVICE_UUID_PRINT: UUID = UUID.fromString("000018f0-0000-1000-8000-00805f9b34fb")

    //蓝牙事件
    const val BLE_CONNECTED: String = "ACTION_GATT_CONNECTED"
    const val BLE_DISCONNECTED: String = "ACTION_GATT_DISCONNECTED"
    const val BLE_SERVICES_DISCOVERED: String = "ACTION_GATT_SERVICES_DISCOVERED"
    const val BLE_DATA_AVAILABLE: String = "BLE_DATA_AVAILABLE"
    const val DEVICE_DOES_NOT_SUPPORT_UART: String = "DEVICE_DOES_NOT_SUPPORT_UART"

}